<template>
  <view class="container">

    <!-- 自定义头部 -->
    <!-- <BhTitle :titleText="titleText"></BhTitle> -->
    <view style="text-align: center;">
      <image src="../../static/images/home_logo.png" mode="scaleToFill" class="logo" />
    </view>
    <view class="title">乐铺多</view>
    <view class="sub-title">无中介&nbsp;&nbsp;真好铺</view>
    <view class="post-buy" style="bottom: 520rpx;" @click="toCommentList"><text style="display: block;">评论管理</text></view>
    <view class="post-buy" style="bottom: 398rpx;" @click="toUserList"><text style="display: block;">用户管理</text></view>
	<view class="post-buy" style="bottom: 398rpx;" @click="toTrackList"><text style="display: block;">埋点统计</text></view>
    <view class="post-buy" @click="buyPost"><text style="display: block;">我要找铺</text></view>
    <view class="post-sell" @click="sellPost"><text style="display: block;">我要转铺</text></view>
  </view>
</template>

<script>
import BhTitle from '../../components/custom_views/bh-title.vue'
import RangeSlider from '../../components/custom_views/range-slider.vue';

import showAreaStreetSheet from '../../components/custom_views/show-area-street-sheet.vue';
import { showAreaStreetSheetMixin } from '../../components/custom_views/show-area-street-sheet-mixin'
import showCommonPicker from '../../components/custom_views/show-common-picker.vue';
import { showCommonPickerMixin } from '../../components/custom_views/show-common-picker-mixin';
import { Dict } from '../../components/custom_views/dict';
import { customDictList, acreageList } from '../../components/custom_views/custom_dict'
import { CustomDict } from '../../components/custom_views/custom_dict';
import { checkBuy, getDefaultPostDto } from '@/components/post_item/post_add_sell_dto';
import { Api } from '../../api/api';
import { commonMixin } from '../../components/custom_views/mixin';

export default {
  components: {
    BhTitle,
    RangeSlider,
    showAreaStreetSheet,
    showCommonPicker
  },
  mixins: [
    commonMixin
  ],
  data() {
    return {
    }
  },

  onLoad() {

  },
  methods: {
    toCommentList(){
      uni.navigateTo({
        url: '/PostPage/user/comment_list'
      })
    },
    toUserList(){
      uni.navigateTo({
        url: '/PostPage/user/user_list'
      })
    },
	toTrackList(){
	  uni.navigateTo({
	    url: '/PostPage/user/user_track_list'
	  })
	},
    buyPost() {
      this.updateUserRole(Dict.PostMainTypeEnum.Shop.childs.ShopBuy.value)
      uni.navigateTo({
        url: '/PostPage/post_add_buy_fake/post_add_buy_fake'
      })
    },
    sellPost() {
      this.updateUserRole(Dict.PostMainTypeEnum.Shop.childs.ShopSell.value)
      uni.navigateTo({
        url: '/PostPage/post_add_sell_fake/post_add_sell_fake'
      })
    }
  },
  watch: {},


  // 页面周期函数--监听页面初次渲染完成
  onReady() { },
  // 页面周期函数--监听页面显示(not-nvue)
  onShow() { },
  // 页面周期函数--监听页面隐藏
  onHide() { },
  // 页面周期函数--监听页面卸载
  onUnload() { },
  // 页面处理函数--监听用户下拉动作
  // onPullDownRefresh() { uni.stopPullDownRefresh(); },
  // 页面处理函数--监听用户上拉触底
  // onReachBottom() {},
  // 页面处理函数--监听页面滚动(not-nvue)
  // onPageScroll(event) {},
  // 页面处理函数--用户点击右上角分享
  // onShareAppMessage(options) {},
}
</script>

<style scoped lang="scss">
@import url(../../static/css/base.css);

.container {
  background-color: #F5F9FA;
  width: 100%;
  min-height: 100vh;

  .logo {
    margin-top: 400rpx;
    width: 144rpx;
    height: 140rpx;
    text-align: center;
  }

  .title {
    margin-top: 48rpx;
    text-align: center;
    font-size: 48rpx;
    font-weight: 600;
    line-height: 48px;
    text-align: center;
    letter-spacing: 0px;

    color: rgba(0, 0, 0, 0.85);
  }

  .sub-title {
    margin-top: 32rpx;
    font-size: 32rpx;
    font-weight: 600;
    text-align: center;

    color: rgba(0, 0, 0, 0.85);
  }

  .post-buy {
    position: absolute;
    margin: auto;
    text-align: center;
    left: 68rpx;
    right: 68rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 248rpx;
    // width: 612rpx;
    height: 112rpx;
    border-radius: 48rpx;
    opacity: 1;

    background: #F8D247;
  }

  .post-sell {
    position: absolute;
    margin: auto;
    text-align: center;
    left: 68rpx;
    right: 68rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 88rpx;
    // width: 612rpx;
    height: 112rpx;
    border-radius: 48rpx;
    opacity: 1;

    background: #FFFFFF;

    box-sizing: border-box;
    border: 1px solid #333333;
    font-size: 32rpx;
    font-weight: 600;

    color: rgba(0, 0, 0, 0.85);
  }
}
</style>